import request from '@/utils/request'

export function bankList (data) { //银行列表
  return request({
    url: '/wallet-center/wallet-bank/search',
    method: 'get',
    params :  data
  })
}
export function addCompileBank (data,method) { //添加 编辑银行
  return request({
    url: '/wallet-center/wallet-bank',
    method: method,
    data
  })
}
export function switchBank (data) { //银行启用、关闭
  return request({
    url: '/wallet-center/wallet-bank/switchs',
    method: 'post',
    data
  })
}
export function delBank (data) { //银行删除
  return request({
    url: '/wallet-center/wallet-bank',
    method: 'DELETE',
    data
  })
}
/* ************** 提现管理 ******************* */

export function getMoneyList (data) { //提现订单-查询
    return request({
      url: '/pay-admin/payment-admin-funds/search',
      method:'get',
      params:data
    })
}

export function getMoneyDetails (data) { //提现订单-详情
    return request({
      url: '/pay-admin/payment-admin-funds/detail',
      method:'get',
      params:data
    })
}

export function getMoney (data) { //提现订单-手动提现到银行卡
    return request({
      url: '/pay-admin/payment-admin-funds/handler',
      method:'POST',
      data
    })
}
